package AC;

public class TV {
    private String color;
    private int price;
    private int size;

    public void open(){
        System.out.println("电视机开机了");
    }
    public void close(){
        System.out.println("电视机关机了");
    }
    public void huantai(){
        System.out.println("电视机换台了");
    }
    public void show(){
        System.out.println("电视机颜色："+color+",价格："+price+",屏幕大小："+size);
    }
    public TV(){}
    public TV(String color, int price, int size) {
        this.color = color;
        this.price = price;
        this.size = size;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
